import request from '@/utils/request'
// 列表
export function getList(data, page) {
    return request({
        url: '/Gift_sale/internal_purchase_list/' + (page ? page : 1),
        method: 'post',
        data: data
    })
}
// 获取分页
export function getPage(data) {
    return request({
        url: '/Gift_sale/internal_purchase_page',
        method: 'post',
        data: data
    })
}
export function getBrandList(data) {
    return request({
        url: '/General/get_brand_second',
        method: 'post',
        data: data
    })
}
// 获取门店列表
export function getStoreList(data) {
    return request({
        url: '/General/get_store',
        method: 'post',
        data: data
    })
}
export function save(data) {
    return request({
        url: '/Gift_sale/edit_proportion',
        method: 'post',
        data: data
    })
}
export function on_off(data) {
    return request({
        url: '/Gift_sale/on_off_buy',
        method: 'post',
        data: data
    })
}